/*
 * @Author: 于波 ksdhy.dev@gmail.com
 * @Date: 2025-04-07 20:14:00
 * @LastEditors: 于波 ksdhy.dev@gmail.com
 * @LastEditTime: 2025-04-08 01:08:28
 * @FilePath: \forumSchema\src\main\java\com\forum\bean\ArticlePayments.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package com.forum.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.*;
@Component
public class ArticlePayments {
    @TableId(type = IdType.AUTO)
    private Integer id; // 记录ID
    private Integer articleId; // 文章ID
    private Integer userId; // 用户ID
    private BigDecimal amount; // 支付金额
    private LocalDateTime createdAt; // 支付时间

    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public Integer getArticleId() { return articleId; }
    public void setArticleId(Integer articleId) { this.articleId = articleId; }
    public Integer getUserId() { return userId; }
    public void setUserId(Integer userId) { this.userId = userId; }
    public BigDecimal getAmount() { return amount; }
    public void setAmount(BigDecimal amount) { this.amount = amount; }
    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
}
